package com.wangyuan.demo.entity;

import java.io.Serializable;

/**
 * User实体类对象
 *
 * @author Albert
 * @date 2025-06-23 21:28:38
 * @return
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String username;
    private String realname;
    private String password;
    private String sex;

    /**
     * 无参构造方法
     */
    public User() {
    }

    /**
     * 有参构造方法
     *
     * @param id
     * @param username
     * @param realname
     * @param password
     * @param sex
     */
    public User(Integer id, String username, String realname, String password, String sex) {
        this.id = id;
        this.username = username;
        this.realname = realname;
        this.password = password;
        this.sex = sex;
    }

    // 手写getter和setter方法
    public Integer getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getRealname() {
        return realname;
    }

    public String getPassword() {
        return password;
    }

    public String getSex() {
        return sex;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}